package com.ihm.labyrinth.levels;

import java.util.Random;

public class Level {

	private int position;
	private String name;
	private int shootcycle;
	private String filename;
	private int height;
	private int width;

	public Level(int position, String name, int shootcycle, String filename,
			int height, int width) {
		super();
		this.position = position;
		this.name = name;
		this.shootcycle = shootcycle + (new Random().nextInt(8) - 4);
		this.filename = filename;
		this.height = height;
		this.width = width;
	}

	public Level(int position, String name, int shootcycle) {
		super();
		this.position = position;
		this.name = name;
		this.shootcycle = shootcycle;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getShootcycle() {
		return shootcycle;
	}

	public void setShootcycle(int shootcycle) {
		this.shootcycle = shootcycle;
	}
	
	
	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}
	
	@Override
	public String toString() {
		return "Level [position=" + position + ", name=" + name
				+ ", shootcycle=" + shootcycle + ", filename=" + filename
				+ ", height=" + height + ", width=" + width + "]";
	}
	
	
	
}
